package com.gem.day06.extend2;

import static com.gem.day06.extend2.ShapeFactory.*;

public class ShapeTest {
	public static void main(String[] args) {
		/*Rect rect = new Rect(3, 4);
		System.out.println(rect);
		System.out.println(rect.length());
		System.out.println(rect.area());
		
		Circle circle = new Circle(3.0);
		System.out.println(circle);
		System.out.println(circle.length());
		System.out.println(circle.area());
		
		Square square = new Square(3);
		System.out.println(square);
		System.out.println(square.length());
		System.out.println(square.area());*/

		Shape shape = getShape(CIRCLE);
		System.out.println(shape);
	}
}
